import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '学年',
    align: "center",
    dataIndex: 'year'
  },
  {
    title: '姓名',
    align: "center",
    dataIndex: 'name'
  },
  {
    title: '学号',
    align: "center",
    dataIndex: 'studentId'
  },
  {
    title: '学院',
    align: "center",
    dataIndex: 'academy'
  },
  {
    title: '专业',
    align: "center",
    dataIndex: 'major'
  },
  {
    title: '年级',
    align: "center",
    dataIndex: 'grade'
  },
  {
    title: '名称',
    align: "center",
    dataIndex: 'certificatesName'
  },
  {
    title: '思想道德素质',
    align: "center",
    dataIndex: 'ideological'
  },
  {
    title: '平均学分绩点',
    align: "center",
    dataIndex: 'averageCreditPoints'
  },
  {
    title: '奖励金额',
    align: "center",
    dataIndex: 'money'
  },
  {
    title: '外语通级',
    align: "center",
    dataIndex: 'foreignLanguage'
  },
  {
    title: '学习成绩班级排名',
    align: "center",
    dataIndex: 'classRankings'
  },
  {
    title: '学习成绩班级排名比例',
    align: "center",
    dataIndex: 'classRankingRatio'
  },
  {
    title: '学习成绩专业排名',
    align: "center",
    dataIndex: 'professionalRankings'
  },
  {
    title: '学习成绩专业排名比例',
    align: "center",
    dataIndex: 'professionalRankingRatios'
  },
  {
    title: '综测总分',
    align: "center",
    dataIndex: 'totalScore'
  },
  {
    title: '综测总分班级排名',
    align: "center",
    dataIndex: 'totalScoreClass'
  },
  {
    title: '综测总分班级排名比例',
    align: "center",
    dataIndex: 'totalScoreClassRatio'
  },
  {
    title: '综测总分专业排名',
    align: "center",
    dataIndex: 'totalScoreProfessional'
  },
  {
    title: '综测总分专业排名比例',
    align: "center",
    dataIndex: 'totalScoreProfessionalRatio'
  },
  {
    title: '主修专业必修课程单科最低成绩绩点',
    align: "center",
    dataIndex: 'minimumGradePoint'
  },
  {
    title: '测评学年获得学分',
    align: "center",
    dataIndex: 'earnCredits'
  },
  {
    title: '测评学年本专业指导性教学计划推荐修读课程学分总量（含公选课学分）',
    align: "center",
    dataIndex: 'totalNumber'
  },
  {
    title: '备注',
    align: "center",
    dataIndex: 'remark'
  },
  {
    title: '班级',
    align: "center",
    dataIndex: 'clas'
  },
  {
    title: '证书下载',
    align: "center",
    dataIndex: 'download',
    slots: { customRender: 'fileSlot' },
  },
];

//查询数据
export const searchFormSchema: FormSchema[] = [
];

//表单数据
export const formSchema: FormSchema[] = [
  {
    label: '学年',
    field: 'year',
    component: 'Input',
  },
  {
    label: '姓名',
    field: 'name',
    component: 'Input',
  },
  {
    label: '学号',
    field: 'studentId',
    component: 'Input',
  },
  {
    label: '学院',
    field: 'academy',
    component: 'Input',
  },
  {
    label: '专业',
    field: 'major',
    component: 'Input',
  },
  {
    label: '年级',
    field: 'grade',
    component: 'Input',
  },
  {
    label: '名称',
    field: 'certificatesName',
    component: 'Input',
  },
  {
    label: '思想道德素质',
    field: 'ideological',
    component: 'Input',
  },
  {
    label: '平均学分绩点',
    field: 'averageCreditPoints',
    component: 'Input',
  },
  {
    label: '奖励金额',
    field: 'money',
    component: 'Input',
  },
  {
    label: '外语通级',
    field: 'foreignLanguage',
    component: 'Input',
  },
  {
    label: '学习成绩班级排名',
    field: 'classRankings',
    component: 'Input',
  },
  {
    label: '学习成绩班级排名比例',
    field: 'classRankingRatio',
    component: 'Input',
  },
  {
    label: '学习成绩专业排名',
    field: 'professionalRankings',
    component: 'Input',
  },
  {
    label: '学习成绩专业排名比例',
    field: 'professionalRankingRatios',
    component: 'Input',
  },
  {
    label: '综测总分',
    field: 'totalScore',
    component: 'Input',
  },
  {
    label: '综测总分班级排名',
    field: 'totalScoreClass',
    component: 'Input',
  },
  {
    label: '综测总分班级排名比例',
    field: 'totalScoreClassRatio',
    component: 'Input',
  },
  {
    label: '综测总分专业排名',
    field: 'totalScoreProfessional',
    component: 'Input',
  },
  {
    label: '综测总分专业排名比例',
    field: 'totalScoreProfessionalRatio',
    component: 'Input',
  },
  {
    label: '主修专业必修课程单科最低成绩绩点',
    field: 'minimumGradePoint',
    component: 'Input',
  },
  {
    label: '测评学年获得学分',
    field: 'earnCredits',
    component: 'Input',
  },
  {
    label: '测评学年本专业指导性教学计划推荐修读课程学分总量（含公选课学分）',
    field: 'totalNumber',
    component: 'Input',
  },
  {
    label: '备注',
    field: 'remark',
    component: 'Input',
  },
  {
    label: '班级',
    field: 'clas',
    component: 'Input',
  },
  {
    label: '证书下载',
    field: 'download',
    component: 'JUpload',
    componentProps:{
     },
  },
	// TODO 主键隐藏字段，目前写死为ID
  {
    label: '',
    field: 'id',
    component: 'Input',
    show: false,
  },
];
